package com.song.srb.interal.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 积分等级表
 * </p>
 *
 * @author song
 * @since 2024-02-27
 */
@TableName("integral_grade")
@Data
@Schema(name = "IntegralGrade对象", description = "积分等级表")
public class IntegralGrade implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "积分区间开始")
    private Integer integralStart;

    @Schema(description = "积分区间结束")
    private Integer integralEnd;

    @Schema(description = "借款额度")
    private BigDecimal borrowAmount;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private Date updateTime;

    @Schema(description = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic(value = "0",delval = "1")
    private Integer isDeleted;

}
